package cn.stylefeng.guns.modular.business.frequency.ordertransportrelation.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * tt_order_transport_relation
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@TableName("tt_order_transport_relation")
public class OrderTransportRelation  {

    /**
     * id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * order_id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * transport_id
     */
    @TableField("transport_id")
    private Long transportId;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;

    public OrderTransportRelation() {
    }

    public OrderTransportRelation(Long orderId, Long transportId, Long tenantId) {
        this.orderId = orderId;
        this.transportId = transportId;
        this.tenantId = tenantId;
    }
}
